﻿<%@ Page Title="报警统计" Language="C#" MasterPageFile="~/Web/Main.Master" EnableEventValidation = "false" AutoEventWireup="true" CodeBehind="warningStat.aspx.cs" Inherits="BOMS.WebUI.Web.Warning.warningStat" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script src="/Js/DatePicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript" src="/js/Dialog.js"></script>
<script type ="text/javascript">
function zOpen(op, id) {
    var Url;
    if (op == "select") {
        Url = "warningProcessDetail.aspx?id=" + id;
    }
    var diag = new Dialog("Diag2");
    diag.Width = 760;
    diag.Height = 370;
    diag.Title = "报警处理信息详情";
    diag.URL = Url + "&rdm=" + Math.random();
    diag.show();
}
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="usertableborder" cellspacing="1" cellpadding="3" width="96%" align="center" border="0">
    <tr>
        <th>按条件进行报警统计查询</th>
    </tr>
    <tr>
        <td class="usertablerow4">
	        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
		        <tr>
                 <td width="65%" height="30" align="right">
                        现场主机：<asp:DropDownList ID="drpEquip" runat="server" AutoPostBack="true">
                            <asp:ListItem Value="" Text="所有主机"></asp:ListItem>               
                        </asp:DropDownList>
                        电池组：<asp:DropDownList ID="drpBatgrp" runat="server" AutoPostBack="true">
                            <asp:ListItem Value="" Text="所有电池组"></asp:ListItem>                
                        </asp:DropDownList>
                        电池：<asp:DropDownList ID="drpBattery" runat="server">
                            <asp:ListItem Value="" Text="所有电池"></asp:ListItem>               
                        </asp:DropDownList>
                    </td>
			        <td width="5%"></td>
                    <td align="left">
                        <div style="margin-left:10px">报警类型：<asp:DropDownList ID="drp_warningStatus" runat="server">
                            <asp:ListItem>全部类型</asp:ListItem>
                            <asp:ListItem>过压</asp:ListItem>
                            <asp:ListItem>欠压</asp:ListItem>
                            <asp:ListItem>过流</asp:ListItem>
                            <asp:ListItem>过温</asp:ListItem>
                            <asp:ListItem>内阻预警</asp:ListItem>
                            <asp:ListItem>内阻超差</asp:ListItem>
                            <asp:ListItem>内阻不均</asp:ListItem>
                            <asp:ListItem>内阻超限</asp:ListItem>
                            <asp:ListItem>内阻异常</asp:ListItem>
                            <asp:ListItem>通讯超时</asp:ListItem>
                            <asp:ListItem>均衡</asp:ListItem>
                            <asp:ListItem>未知</asp:ListItem>
                        </asp:DropDownList></div>
                    </td>
                </tr>
                <tr>
			        <td width="65%" height="30" align="right">
                    开始时间：<asp:TextBox ID="txtDtmBegin" runat="server" Width="150px" CssClass="Wdate" onFocus="WdatePicker({skin:'whyGreen',isShowClear:true,readOnly:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})"></asp:TextBox>
			        结束时间：<asp:TextBox ID="txtDtmEnd" runat="server" Width="150px" CssClass="Wdate" onFocus="WdatePicker({skin:'whyGreen',isShowClear:true,readOnly:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})"></asp:TextBox>
			        </td>
			        <td width="5%"></td>
			        <td align="left"><asp:Button ID="btn_submit" runat="server" Text="查 询" class="btnbg" onclick="btn_submit_Click" /></td>
		        </tr>
	        </table>
        </td>
    </tr>
</table>
<div class="gv">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="gvtable">
		<tr>
			<th>
	            <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
		            <tr>
			            <td width="90%"><font>查询目标：</font>现场主机 <font><asp:Label ID="Label_wince" runat="server" Text=""></asp:Label></font> 电池组 <font><asp:Label ID="Label_group" runat="server" Text=""></asp:Label></font> 电池 <font><asp:Label ID="Label_battery" runat="server" Text=""></asp:Label></font></td>
			            <td width="10%"><asp:Button ID="btnChart" runat="server" Text="饼形图" class="btnbg" OnClick="btnChart_Click" /></td>
		            </tr>
                </table>
	            <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" style="border-top:#fff 1px solid">
		            <tr>
			            <td width="90%"><font>查询时间：</font>从 <font><asp:Label ID="Label_begin" runat="server" Text=""></asp:Label></font> 至 <font><asp:Label ID="Label_end" runat="server" Text=""></asp:Label></font> 共报警 <font><asp:Label ID="Label_count" runat="server" Text=""></asp:Label></font> 次</td>
			            <td width="10%"><asp:Button ID="Button2" runat="server" Text="导出execl" class="btnbg" onclick="btnExcel_Click" Enabled="false" /></td>
		            </tr>
	            </table> 
            </th>
		</tr>
	</table> 
    <asp:GridView ID="GridView_history" runat="server" AutoGenerateColumns="False"  
        CssClass="gvstyle" HorizontalAlign="Center" CellSpacing="1" Width="100%" 
        DataKeyNames="id" onrowcommand="GridView_history_RowCommand" 
        onrowdatabound="GridView_history_RowDataBound" GridLines="None" 
        AllowSorting="True" onsorting="GridView_history_Sorting">
        <Columns>
            <asp:BoundField DataField="HostName" HeaderText="现场主机" 
                SortExpression="HostName" />
            <asp:BoundField DataField="batterygroup" HeaderText="电池组" 
                SortExpression="batterygroup" />
            <asp:BoundField DataField="batteryid" HeaderText="电池编号" 
                SortExpression="batteryid" />
            <asp:BoundField DataField="warningstatus" HeaderText="报警类型" 
                SortExpression="warningstatus" />
            <asp:BoundField DataField="warningtime" HeaderText="报警时间" 
                SortExpression="warningtime" />
            <asp:ButtonField ButtonType="Button" CommandName="select" HeaderText="操作" Text="查看" />
        </Columns>
        <FooterStyle CssClass="FooterStyle" />
        <RowStyle CssClass="gvrowstyle" />
        <EmptyDataRowStyle CssClass="EmptyRowStyle" />
        <PagerStyle CssClass="PagerStyle" />           
        <HeaderStyle CssClass="gvtitle" />
        <EditRowStyle CssClass="EditRowStyle" />
        <AlternatingRowStyle CssClass="gvalternatingrowstyle" />
    </asp:GridView>
</div>
</asp:Content>
